package com.ruanyun.modular.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruanyun.modular.admin.model.params.PollutantsParam;
import com.ruanyun.modular.admin.model.params.TExhaustOutletParam;
import com.ruanyun.modular.admin.model.result.PollutantsResult;
import com.ruanyun.modular.admin.model.result.TExhaustOutletResult;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;


public interface PollutantsMapper extends BaseMapper<PollutantsParam> {

    int addPollutants(@Param("pollutantsParam") PollutantsParam pollutantsParam);


    Page<PollutantsResult> customPageList1(@Param("page") Page page, @Param("pollutantsParam") PollutantsParam paramCondition);

     @Select("select * from pollutants_info where id = #{id}")
    PollutantsResult pollutantsDetail(@Param("id") Integer id);

     int updatePollutants(@Param("pollutantsParam") PollutantsParam pollutantsParam);

     @Update("update pollutants_info set del_flag = 2 where id = #{id} ")
     int delP(@Param("id") Integer id);

}
